#import "JSONModel.h"
#import <UIKit/UIKit.h>
#pragma mark --- KeyChain define
#define KeyChain_AccountInfo  @"AccountInfo"
#define KeyChain_Group        [[NSBundle mainBundle] bundleIdentifier]


#pragma mark --- UserDefaults define
#define Userkey_RememberPwd   @"RememberPwd"  // [记录最后一个登录用户是否记住密码的状态，用作自动登录]是否记住密码的key值 value：1记住 0 不记录

#pragma mark --- HTTP define
//#define HTTPBASEURL                     @"http://store.xuege.com"
//#define HTTPBASEURL                   @"http://192.168.11.112:8085"
//#define HTTPIMAGEBASEURL                @"http://61.155.169.177:9911/"
#define HTTPIMAGEBASEURL                @"http://store.xuege.com:81/"

#define RequestTimeOut                  30  // 默认请求超时的时间


//错误提示
#define DATA_FORMAT_ERROR   @"数据格式错误"
#define NETWORK_UNABLE      @"网络状况异常"
#define REQUEST_FAILE       @"网络请求失败"

#define ViewBackColor  RGBACOLOR(220, 220, 220, 1.0) //页面的背景色

#define TITLE_HEIGHT            50.0  // 标题栏的高度[积分商城\基建商城]


#define ConditionCellColor   RGBACOLOR(96, 96, 98, 1.0) //页面的背景色
#define ConditionBtn_X  0
#define ConditionBtn_MarginX  20
#define ConditionBtn_MarginY  15

#define ConditionBtnView_Width   800
#define ConditionBtnView_Height   44
#define ConditionText_Font  [UIFont systemFontOfSize:15.0]

/**
 *  返回数据的基本类型
 */
@interface JsonRetMsg: NSObject
@property (strong, nonatomic) NSString* success;      //返回编码，1表示正确
@property (strong, nonatomic) id data;  //功能接口的返回数据。
@property (strong, nonatomic) NSArray<Optional> *error;  //返回的消息，可选

/**
 *  根据错误码获取错误信息
 */
-(void)getErrorMsg;

/**
 *  描述当前对象
 *
 *  @return 当前对象的字符串
 */
-(NSString *)description;

@end

/**
 *  用户地理位置信息
 */
@interface LocationModel : JSONModel
@property (nonatomic, assign) double la;
@property (nonatomic, assign) double lo;
@property (nonatomic, strong) NSString<Optional> *city;
@property (nonatomic, strong) NSString<Optional> *cityCode;
@end

/**
 *  用户登录信息
 */
@interface LoginModel : JSONModel
@property (nonatomic, strong) NSString<Optional> *userId;
@property (nonatomic, strong) NSString<Optional> *mobilePhone;
@property (nonatomic, strong) NSString<Optional> *accessKey;
@property (nonatomic, strong) NSString<Optional> *carId;
@property (nonatomic, strong) NSString<Optional> *carNumber;
@end

/**
 *  首页地图搜索停车场
 */
@interface ParkingSearchModel : JSONModel
@property (nonatomic, strong) NSString<Optional> *id;
@property (nonatomic, strong) NSString<Optional> *gpsLat;
@property (nonatomic, strong) NSString<Optional> *gpsLon;
@property (nonatomic, strong) NSString<Optional> *name;
@property (nonatomic, strong) NSString<Optional> *isBusy;
@property (nonatomic, strong) NSString<Optional> *totalParkingSpace;
@property (nonatomic, strong) NSString<Optional> *remainParkingSpace;
@end

/**
 *  地图车位信息
 */
@interface ParkingSpaceInfoModel : JSONModel
@property (nonatomic, strong) NSString<Optional> *spaceNo;
@property (nonatomic, strong) NSString<Optional> *status;
@property (nonatomic, strong) NSString<Optional> *isSpecialSpace;
@property (nonatomic, strong) NSString<Optional> *leftPointX;
@property (nonatomic, strong) NSString<Optional> *leftPointY;
@property (nonatomic, strong) NSString<Optional> *rightPointX;
@property (nonatomic, strong) NSString<Optional> *rightPointY;
@end
@protocol ParkingSpaceInfoModel
@end

/**
 *  停车场信息
 */
@interface ParkPortModel : JSONModel
@property (nonatomic, strong) NSString<Optional> *smallPic;
@property (nonatomic, strong) NSString<Optional> *bigPic;
@property (nonatomic, strong) NSString<Optional> *width;
@property (nonatomic, strong) NSString<Optional> *height;
@property (nonatomic, strong) NSString<Optional> *centerX;
@property (nonatomic, strong) NSString<Optional> *centerY;
@property (nonatomic, strong) NSString<Optional> *unitPrice;
@property (nonatomic, strong) NSArray<ParkingSpaceInfoModel> *freeParkingSpaceList;
@end

/**
 *  预约订单
 */
@interface BookParkingPortOrderModel : JSONModel
@property (nonatomic, strong) NSString<Optional> *userId;
@property (nonatomic, strong) NSString<Optional> *orderNo;
@property (nonatomic, strong) NSString<Optional> *createTime;
@property (nonatomic, strong) NSString<Optional> *updateTime;
@property (nonatomic, strong) NSString<Optional> *parkingId;
@property (nonatomic, strong) NSString<Optional> *parkingName;
@property (nonatomic, strong) NSString<Optional> *orderType;
@property (nonatomic, strong) NSString<Optional> *orderStatus;
@end

/**
 *  订单详情里 子订单信息
 */
@interface SubBookingOrderModel : JSONModel
@property (nonatomic, strong) NSString<Optional> *parkingSpaceNo;
@property (nonatomic, strong) NSString<Optional> *carNumber;
@property (nonatomic, strong) NSString<Optional> *subBookingOrderStatus;
@property (nonatomic, strong) NSString<Optional> *amount;
@end
@protocol SubBookingOrderModel
@end

/**
 *  预约订单详情
 */
@interface BookingOrderDetailModel : JSONModel
@property (nonatomic, strong) NSString<Optional> *parkingName;
@property (nonatomic, strong) NSString<Optional> *parkingId;
@property (nonatomic, strong) NSString<Optional> *createTime;
@property (nonatomic, strong) NSString<Optional> *updateTime;
@property (nonatomic, strong) NSString<Optional> *expireTime;
@property (nonatomic, strong) NSString<Optional> *bookingOrderStatus;
@property (nonatomic, strong) NSString<Optional> *orderType;
@property (nonatomic, strong) NSString<Optional> *bookingOrderAmount;
@property (nonatomic, strong) NSString<Optional> *timeRemain;
@property (nonatomic, strong) NSArray<SubBookingOrderModel> *subBookingOrderList;
@end

/**
 *  我的车牌列表
 */
@interface MyCarListModel : JSONModel
@property (nonatomic, strong) NSString<Optional> *carnumber;
@property (nonatomic, strong) NSString<Optional> *isPrimary;
@end








